package com.bto.solar.work.dto.lease;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class FileAndContactAsyncPushRes {

    @JsonProperty("body")
    private List<Body> body;
    @JsonProperty("head")
    private Head head;

    @NoArgsConstructor
    @Data
    public static class Body {
        @JsonProperty("type")
        private String type;
        @JsonProperty("message")
        private String message;
        @JsonProperty("businessKey")
        private String businessKey;
        @JsonProperty("keyType")
        private String keyType;
        @JsonProperty("queryId")
        private String queryId;
        @JsonProperty("fileList")
        private List<File> fileList;
    }

    @NoArgsConstructor
    @Data
    public static class File {
        @JsonProperty("fileCode")
        private String fileCode;
        @JsonProperty("fileName")
        private String fileName;
        @JsonProperty("fileAddress")
        private String fileAddress;
        @JsonProperty("fileStatus")
        private String fileStatus;
        @JsonProperty("fileErrorMessage")
        private String fileErrorMessage;
    }

    @NoArgsConstructor
    @Data
    public static class Head {
        @JsonProperty("errorCode")
        private String errorCode;
        @JsonProperty("errorMessage")
        private String errorMessage;
        @JsonProperty("serialNumber")
        private String serialNumber;
        @JsonProperty("systemId")
        private String systemId;
        @JsonProperty("transactionCode")
        private String transactionCode;
        @JsonProperty("transactionTime")
        private String transactionTime;
        @JsonProperty("version")
        private Integer version;
    }




}
